package com.exc.util;

import com.exc.pojo.Resume;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;

/**
 * @author Huang Min
 * @date 2020/8/27 20:12
 * @description
 */
public class ControllerUtil {
    public static ModelAndView createModeAndView(Resume resume){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("resume",resume);
        return modelAndView;
    }
    public static ModelAndView createModeAndView(List<Resume> listResume){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("listResume",listResume);
        return modelAndView;
    }
}
